<ul class="three">
<?php if (count($this->_tpl_vars['array'])>0){$divid_i=1;for($i=0;$i<count($this->_tpl_vars['array']); $i++){?>
    <li <?php if($this->_tpl_vars['array'][$i]['level']>1){ ?>class="b"<?php }else{ ?>class="a"<?php } ?>>
	     <a class="typelink" href="<?php echo $this->_tpl_vars['array'][$i]['link'] ?>"><?php echo $this->_tpl_vars['array'][$i]['typename'] ?></a>
    </li>
<?php }} ?>
</ul>